import React from "react";
import { Layout } from "antd";
import AccessProvider from "@/access/accessProvider";
import Sider from "./sider";
import Content from "./content";
const { Header, Footer } = Layout;
import fields from "@/components/fields";
import { registerType } from "@ebonex/ebonex-ui";
registerType(fields);
const App: React.FC = () => {
  return (
    <AccessProvider>
      <Layout style={{ minHeight: "100vh" }}>
        <Sider />
        <Layout className="site-layout">
          <Header style={{ padding: 0, background: "#fff" }} />
          <Content />
          <Footer style={{ textAlign: "center" }}>
            Admin ©2022 Created by Wang Ren
          </Footer>
        </Layout>
      </Layout>
    </AccessProvider>
  );
};
export default App;
